import { createRouter, createWebHistory } from 'vue-router'
import HelloWorld from '../components/HelloWorld.vue'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HelloWorld,
      props: {
        msg: '这是子应用的首页'
      }
    },
    {
      path: '/child',
      name: 'child',
      component: HelloWorld,
      props: {
        msg: '这是子应用的子页面'
      }
    },
    {
      path: '/about',
      name: 'about',
      component: HelloWorld,
      props: {
        msg: '这是关于页面'
      }
    }
  ]
})

export default router